package cn.edu.nsmc.modules.sys.dao;

import cn.edu.nsmc.common.utils.R;
import cn.edu.nsmc.modules.sys.entity.SysUserTokenEntity;
import cn.edu.nsmc.modules.sys.entity.SysWorksheetTemplate;
import cn.edu.nsmc.modules.sys.entity.data.SysWorksheetTemplateR;
import cn.edu.nsmc.modules.sys.form.VisitorList;
import cn.edu.nsmc.modules.sys.form.WorksheetTemplateList;
import cn.edu.nsmc.modules.sys.form.req.ReqVisitorForm;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface SysWorksheetTemplateDao extends BaseMapper<SysWorksheetTemplate> {
    @Update("update sys_worksheet_template set name = #{name},path = #{path},explanation = #{explanation},type = #{type},creator_id = #{creatorId},memo = #{memo},status = #{status},sample=#{sample} where id = #{id}")
    int updatedWorksheetTemplate(SysWorksheetTemplate sysWorksheetTemplate);

    List<SysWorksheetTemplateR> getWorksheetTemplateList(WorksheetTemplateList worksheetTemplateList);
    Integer getWorksheetTemplateListNumber(WorksheetTemplateList worksheetTemplateList);
}
